<?php 
$a = ['name'=>'小明','age'=>18];
$b=serialize($a);
var_dump(unserialize($b));
setcookie('id',serialize($a),time()+3600,'/');





?>